﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace GXJD.Wx.DBModel
{
    [Table("news")]
    public class News : Entity
    {
        [MaxLength(200)]
        /// <summary>
        /// 网站名称
        /// </summary>
        public string sitename { get; set; }

        [MaxLength(500)]
        /// <summary>
        /// 标题
        /// </summary>
        public string title { get; set; }

        /// <summary>
        /// 发布日期
        /// </summary>
        public DateTime? date { get; set; }


        [MaxLength(500)]
        /// <summary>
        /// 链接地址
        /// </summary>
        public string url { get; set; }

        [Column(TypeName = "text")]
        /// <summary>
        /// 页面内容
        /// </summary>
        public string content { get; set; }

    }
}
